.PHONY: build build-web build-go dev go-dev

dev: build-web go-dev

build:	build-web	build-go

build-web:
	cd ./web && \
	pnpm i && \
	pnpm run build && \
	rm -rf ../static && \
	mkdir -p ../static && \
 	cp -r ./dist/* ../static/

build-go:
	go build

go-dev:
	go run .

build-win:
	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build

cp-to-path:
	sudo cp gote /usr/local/bin

deploy-linux: build cp-to-path

